<?xml version="1.0" encoding="UTF-8"?>

<output>
     
    <ticket>
       <line>
        #foreach ($ticketline0 in $ticket0)
             #set ($temp1 = $ticketline0.getInteger("quantity"))
             #foreach ($temp2 in [1..$temp1])
             <text>N</text>
             <text>A20,70,0,4,1,1,N,"${ticketline0.getString("endishname")}"</text>
             <text>A120,30,0,4,1,1,N,"$temp2/$temp1"</text>
             <text>A30,30,0,4,1,1,N,"${ticketline0.getString("todaysid")}"</text>
             <text>P1</text>
             #end
        	#end
                    </line>
     </ticket>
    </output>